package com.yt.server.api.comm;

import java.util.Collection;
import org.apache.mina.core.session.IoSession;

import com.yt.server.api.StatisticsCounter;

public interface ISessionManager {
	
	public static final String BEAN_NAME = "sessionManager";
	
	ISession getSession(String id);

	ISession createSession(IoSession ioSession);

	ISession removeSession(String id);

	Collection<ISession> removeSessions();
	
	boolean containsSession(String id);
	
	StatisticsCounter getCounter();
	
	void setDestinationDirectory(String destinationDir);
}
